//
//  LTGroupDeleteAlertView.m
//  LearnTeacher
//
//  Created by zyl_macbookpro on 2024/4/14.
//

#import "LTGroupDeleteAlertView.h"

@implementation LTGroupDeleteAlertView
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    self.hidden = YES;
}
- (void)drawRect:(CGRect)rect {
    [self.cancelBtn setAllCornersWithCornerRadius:22];
    [self.confirmBtn setAllCornersWithCornerRadius:22];
}
- (IBAction)confirmClick:(UIButton *)sender {
    if (self.block) {
        self.block();
        self.hidden = YES;
    }
}
- (IBAction)cancelClick:(UIButton *)sender {
    self.hidden = YES;
}

@end
